package com.anzhen.interview.dynamicProxy;

import java.util.concurrent.TimeUnit;

/**
 * Created by zhenan on 2017-4-14.
 */
public class RealSubject implements Subject {
    @Override
    public void rent() {
        try {
            TimeUnit.SECONDS.sleep(1L);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("I want to rent my house");
    }

    @Override
    public void hello(String str) {
        System.out.println("hello: " + str);
    }
}
